﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/MaterPage.Master" EnableSessionState="True" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AlltrustDinner.Pages.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Scripts/Users/OrderDinner.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: left">
        <span style="display: none;" alltrusttag="order_info" name="user_name"><%=(( AlltrustDinner.Pages.MaterPage)Master).CURRENT_USER.NAME %></span>
        <span>今日美食</span>
        <asp:DropDownList ID="ddl_resturant" AutoPostBack="true" runat="server" ClientIDMode="Static" alltrusttag="order_info" name="resturant_name" OnSelectedIndexChanged="ddl_resturant_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:Repeater ID="rpt_menu_list" runat="server">
            <HeaderTemplate>
                <table id="tbl_menu_list" class="grdView" style="text-align: center; margin-top: 10px;">
                    <thead>
                        <tr>
                            <th style="width: 280px;">名称</th>
                            <th style="width: 170px;">类型</th>
                            <th style="width: 270px">备注</th>
                            <th style="width: 30px;"></th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><span alltrusttag="order_info" name="menu_name"><%# Eval("NAME") %></span></td>
                    <td><span name="menu_type"><%# Eval("TYPE") %></span></td>
                    <td>
                        <input alltrusttag="order_info" name="ipt_remark" type="text" style="width:95%;" /></td>
                    <td>
                        <input alltrusttag="order_info" name="hid_price" type="hidden" value='<%# Eval("PRICE") %>' />
                        <img src="../Images/commit.png" style="float: left; margin-left: 2px; margin-right: 3px; width: 20px; height: 20px;" title="预定" alt="" onclick="orderItem(this);" />
                    </td>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>
            </FooterTemplate>
        </asp:Repeater>
        <div style="margin-top: 15px; display: none;">
            <div style="text-align: left">今日订餐记录</div>
            <table id="tbl_item_list" class="grdView" style="text-align: center; margin-top: 10px;">
                <thead>
                    <tr style="display: none;">
                        <th style="width: 220px;">姓名</th>
                        <th style="width: 120px;">餐馆</th>
                        <th style="width: 220px;">外卖</th>
                        <th style="width: 190px;">备注</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>

    </div>
    <asp:HiddenField ID="hid_today_item_list" runat="server" ClientIDMode="Static" />
</asp:Content>
